<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>packaging-list</title>

  <!--  -->


  <link rel="stylesheet" href="plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
  <link rel="stylesheet" href="plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <link type="text/css" rel="stylesheet" charset="UTF-8"
    href="https://translate.googleapis.com/translate_static/css/translateelement.css">
  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet"
    href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome Icons -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- IonIcons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">

  <style>
    .white_content {
      display: none;
      position: absolute;
      top: 25%;
      left: 25%;
      width: 55%;
      height: 300px;
      padding: 20px;
      border: 1px solid lightgray;
      background-color: white;
      z-index: 1002;
      overflow: auto;
    }
  </style>
  <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
  <script src="https://cdn.staticfile.org/axios/0.18.0/axios.min.js"></script>
</head>


<body class="hold-transition sidebar-mini">
  <div class="wrapper">
    <div class="content">
      <div class="container-fluid">
        <div class="row" id="plus" style="display: none;">
          <div class="col-lg-12">
            <div class="card card-default" id="additems">
              <div class="card-header">
                <h3 class="card-title">
                  <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">新增</font>
                  </font>
                </h3>
                <div class="card-tools">
                  <button @click="addupack()" type="button" class="btn btn-primary"> 添加</button> &nbsp;
                  <button type="button" class="btn btn-tool" data-card-widget="collapse"><i
                      class="fas fa-minus"></i></button>
                  <button type="button" class="btn btn-tool" onclick="drop()"><i class="fas fa-times"></i></button>
                </div>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-4">
                    <div class="row">
                      <div class="col-md-3">
                        <p>品类：</p><br>
                        <p>单号：</p><br>
                        <p>仓库：</p><br>
                        <p>时间：</p><br>
                      </div>
                      <div class="col-md-9">
                        <input v-model="unpack_category" type="text" placeholder="黄金"
                          style="width: 200px; height: 35px; display: block;"><br>
                        <input v-model="formnu" type="text" placeholder="--"
                          style="width: 200px; height: 35px; display: block;"><br>
                        <ul class="navbar-nav nav-sidebar ">
                          <li class="nav-item d-none d-sm-inline-block">
                            <select v-model="unpack_storehouse" class="selectpicker show-tick form-control"
                              style="width: 200px;">
                              <option>仓库A</option>
                              <option>仓库B</option>

                            </select>
                          </li>
                        </ul> <br>
                        <input v-model="unpack_time" type="datetime-local"
                          style="width: 200px; height: 35px; display: block;">
                      </div>
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="row">
                      <div class="col-md-3">
                        <p>选货单号：</p><br>
                        <p>客户：</p><br>
                        <p>重量：</p><br>
                      </div>
                      <div class="col-md-9">
                        <ul class="navbar-nav nav-sidebar ">
                          <li class="nav-item d-none d-sm-inline-block">
                            <select id="select_id" v-model="chooseformnu" class="selectpicker show-tick form-control"
                              style="width: 200px;">
                              <option v-for="cup in cups"><span>{{cup.cgid}}</span></option>
                            </select>
                          </li>
                        </ul><br>
                        <ul class="navbar-nav nav-sidebar ">
                          <li class="nav-item d-none d-sm-inline-block">
                            <select v-model="customer" class="selectpicker show-tick form-control"
                              style="width: 200px;">
                              <option>四川(sichuan)</option>
                              <option>江西(jiangxi)</option>
                            </select>
                          </li>
                        </ul> <br>
                        <input v-model="unpack_weight" type="text" placeholder=""
                          style="width: 200px; height: 35px; display: block;"><br>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="row">
                      <div class="col-md-3">
                        <p>成色：</p><br>
                        <p>数量：</p><br>
                        <p>状态：</p><br>
                      </div>
                      <div class="col-md-9">
                        <ul class="navbar-nav nav-sidebar ">
                          <li class="nav-item d-none d-sm-inline-block">
                            <select v-model="unpack_quality" class="selectpicker show-tick form-control"
                              style="width: 200px;">
                              <option>万足金10000</option>
                              <option>千足金999</option>

                            </select>
                          </li>
                        </ul> <br>
                        <input v-model="unpack_num" type="text" placeholder=""
                          style="width: 200px; height: 35px; display: block;"><br>
                        <ul class="navbar-nav nav-sidebar ">
                          <li class="nav-item d-none d-sm-inline-block">
                            <select v-model="unpack_status" class="selectpicker show-tick form-control"
                              style="width: 200px;">
                              <option>0</option>
                              <option>1</option>
                            </select>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="row" id="app">
          <div class="col-12">
            <div class="card" id="update_card" style="display: none;">
              <div class="card-body">
                <div class="row">
                  <div class="col-md-4">
                    <div class="row">
                      <div class="col-md-3">
                        <p>单号：</p><br>
                        <p>客户：</p><br>
                        <p>数量：</p><br>
                      </div>
                      <div class="col-md-9">
                        <label style="display: block;">{{updataunpack.upnu}}</label><br>
                        <label style="display: block;">{{updataunpack.client}}</label><br>
                        <input v-model="up_amount" type="text" style="width: 200px; height: 35px; display: block;"><br>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="row">
                      <div class="col-md-3">
                        <p>重量：</p><br>
                        <p>仓库：</p><br>
                        <p>状态：</p><br>
                      </div>
                      <div class="col-md-9">
                        <input style="width: 200px; height: 35px; display: block;" v-model="up_weight" type="text"><br>
                        <input style="width: 200px; height: 35px; display: block;" v-model="up_storehouse"
                          type="text"><br>
                        <input style="width: 200px; height: 35px; display: block;" v-model="up_status" type="text"><br>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="row">
                      <div class="col-md-3">
                        <p>成色：</p><br>
                        <p>品类：</p><br>
                        <p>时间：</p><br>
                      </div>
                      <div class="col-md-9">
                        <input style="width: 200px; height: 35px; display: block;" v-model="up_quality" type="text"><br>
                        <label style="display: block;">{{updataunpack.quality}}</label><br>
                        <input style="width: 200px; height: 35px; display: block;" v-model="up_time"
                          type="datetime-local"><br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="card-footer">
                <div class="card-tools">
                  <button type="button" class="btn btn-primary" @click="doing_update(updataunpack.upnu)">编辑</button>
                  <button type="button" class="btn btn-warning" onclick="drop_update()">退出</button>
                </div>
              </div>
            </div>
            <!-- Custom Tabs -->
            <div class="card">
              <div class="card-header d-flex p-0">
                <h3 class="card-title p-3">Tabs</h3>
                <nav class=" navbar navbar-expand navbar-white navbar-light">
                  <ul class="navbar-nav nav-sidebar ">
                    <li class="nav-item d-none d-sm-inline-block">
                      <a href="#" class="nav-link" onclick="addplus()">
                        <i class="fas fa-plus nav-icon"></i>
                        <p>新增</p>
                      </a>
                    </li>
                    <li class="nav-item d-none d-sm-inline-block">
                      <a href="#" class="nav-link">
                        <i class="fas  fa-random nav-icon"></i>
                        <p>导出</p>
                      </a>
                    </li>
                  </ul>
                </nav>
                <ul class="nav nav-pills ml-auto p-2">
                  <li class="nav-item"><a class="nav-link active" href="#tab_1" data-toggle="tab">Tab 1</a></li>
                  <li class="nav-item"><a class="nav-link" href="#tab_2" data-toggle="tab">Tab 2</a></li>
                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                      Dropdown <span class="caret"></span>
                    </a>
                    <div class="dropdown-menu" style="">
                      <a class="dropdown-item" tabindex="-1" href="#">Action</a>
                      <a class="dropdown-item" tabindex="-1" href="#">Another action</a>
                      <a class="dropdown-item" tabindex="-1" href="#">Something else here</a>
                      <div class="dropdown-divider"></div>
                      <a class="dropdown-item" tabindex="-1" href="#">Separated link</a>
                    </div>
                  </li>
                </ul>
              </div><!-- /.card-header -->
              <div class="card-body">
                <div class="tab-content">
                  <div class="tab-pane active" id="tab_1">
                    <div id="example1_wrapper" class="dataTables_wrapper dt-bootstrap4">
                      <div class="row">
                        <div class="col-sm-12">
                          <table id="example1" class="table table-bordered table-striped dataTable dtr-inline"
                            role="grid" aria-describedby="example1_info">
                            <thead>
                              <tr role="row">
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="序号: activate to sort column ascending">序号
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="单号: activate to sort column ascending" style="">单号</th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="客户: activate to sort column ascending" style="">客户
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="仓库: activate to sort column ascending" style="">仓库
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="状态: activate to sort column ascending" style="">状态
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="成色: activate to sort column ascending" style="">成色
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="重量(g): activate to sort column ascending" style="">重量(g)
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="数量: activate to sort column ascending" style="">数量
                                </th>

                                <th class="sorting_desc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="制单时间: activate to sort column ascending" aria-sort="descending" style="">
                                  制单时间</th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                  aria-label="操作: activate to sort column ascending" style="">操作</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr role="row" class="odd" style="display: none;">
                                <td class="" tabindex="0">Gecko</td>
                                <td style="">Epiphany</td>
                                <td style="">Gnome</td>
                                <td style="">Epiphany</td>
                                <td style="">Gnome</td>
                                <td style="">Epiphany</td>
                                <td style="">Gnome</td>
                                <td class="sorting_1" style="">1.8</td>
                                <td style="">A</td>
                                <td style="">A</td>
                              </tr>
                              <tr v-for="(unpack,index) in unpacks">
                                <td>{{index+1}}</td>
                                <td>{{unpack.upnu}}</td>
                                <td>{{unpack.client}}</td>
                                <td>{{unpack.storehouse}}</td>
                                <td>{{unpack.status}}</td>
                                <td>{{unpack.quality}}</td>
                                <td>{{unpack.weight}}</td>
                                <td>{{unpack.num}}</td>
                                <td>{{unpack.time}}</td>
                                <td>
                                  <button type="button" class="btn btn-default dropdown-toggle dropdown-icon"
                                    data-toggle="dropdown">
                                    <span class="sr-only">Toggle Dropdown</span>
                                    <div class="dropdown-menu" role="menu">
                                      <a @click="showdetail(index)" onclick="goinupdate()" class="dropdown-item"
                                        href="#">编辑</a>
                                    </div>
                                  </button>
                                </td>
                              </tr>
                            </tbody>
                            <tfoot>
                            </tfoot>
                          </table>
                        </div>
                      </div>
                    </div>
                  </div>
                  <!-- /.tab-pane -->
                  <div class="tab-pane" id="tab_2">
                    <div id="example3_wrapper" class="dataTables_wrapper dt-bootstrap4">
                      <div class="row">
                        <div class="col-sm-12">
                          <table id="example3" class="table table-bordered table-striped dataTable dtr-inline"
                            role="grid" aria-describedby="example3_info">
                            <thead>
                              <tr role="row">
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Rendering engine: activate to sort column ascending">Rendering engine
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Browser: activate to sort column ascending" style="">Browser</th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Platform(s): activate to sort column ascending" style="">Platform(s)
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Platform(s): activate to sort column ascending" style="">Platform(s)
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Platform(s): activate to sort column ascending" style="">Platform(s)
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Platform(s): activate to sort column ascending" style="">Platform(s)
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Platform(s): activate to sort column ascending" style="">Platform(s)
                                </th>

                                <th class="sorting_desc" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="Engine version: activate to sort column ascending" aria-sort="descending"
                                  style="">Engine version</th>
                                <th class="sorting" tabindex="0" aria-controls="example3" rowspan="1" colspan="1"
                                  aria-label="CSS grade: activate to sort column ascending" style="">CSS grade</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr role="row" class="odd">
                                <td class="" tabindex="0">Gecko</td>
                                <td style="">Epiphany 2.20</td>
                                <td style="">Gnome</td>
                                <td style="">Epiphany 2.20</td>
                                <td style="">Gnome</td>
                                <td style="">Epiphany 2.20</td>
                                <td style="">Gnome</td>
                                <td class="sorting_1" style="">1.8</td>
                                <td style="">A</td>
                              </tr>
                            </tbody>
                            <tfoot>
                            </tfoot>
                          </table>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-lg-12" id="pick">
            <div class="card">
              <div class="card-header"></div>
              <div class="card-body">
                <table id="example4" class="table table-bordered table-striped dataTable dtr-inline" role="grid"
                  aria-describedby="example4_info">
                  <thead>
                    <tr role="row">
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="序号: activate to sort column ascending">
                        序号
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="单号: activate to sort column ascending" style="">单号</th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="商品名: activate to sort column ascending" style="">商品名
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="区域: activate to sort column ascending" style="">区域
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="品类: activate to sort column ascending" style="">品类
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="成色: activate to sort column ascending" style="">成色
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="数量: activate to sort column ascending" style="">数量
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example4" rowspan="1" colspan="1"
                        aria-label="操作: activate to sort column ascending" style="">操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr role="row" class="odd" style="display: none;">
                      <td class="" tabindex="0">Gecko</td>
                      <td style="">Epiphany</td>
                      <td style="">Gnome</td>
                      <td style="">Epiphany</td>
                      <td style="">Gnome</td>
                      <td style="">Epiphany</td>
                      <td style="">Gnome</td>
                      <td class="sorting_1" style="">1.8</td>
                    </tr>
                    <tr v-for="(pickGoods,index) in pickGoodss">
                      <td>{{index+1}}</td>
                      <td>{{pickGoods.cgnu}}</td>
                      <td>{{pickGoods.goodsname}}</td>
                      <td>{{pickGoods.area}}</td>
                      <td>{{pickGoods.category}}</td>
                      <td>{{pickGoods.quality}}</td>
                      <td>{{pickGoods.num}}</td>
                      <td><a href="#" @click="deletepickGoods(index,pickGoods.cgid)"><i class="fas fa-trash"></i></a>
                      </td>
                    </tr>
                  </tbody>
                  <tfoot>
                  </tfoot>
                </table>
              </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-body" id="hitpackdetail">
                <div id="light1" class="white_content">包内详情.
                  <a href="javascript:void(0)" onclick="document.getElementById('light1').style.display='none';">关闭</a>
                  <div class="card card-primary">
                    <div class="card-header">
                      <h3 class="card-title">
                        <font style="vertical-align: inherit;">
                          <font style="vertical-align: inherit;">详情</font>
                        </font>
                      </h3>
                      <div class="card-tools">
                        <button type="button" class="btn btn-tool" data-card-widget="collapse"><i
                            class="fas fa-minus"></i>
                        </button>
                        <button type="button" class="btn btn-tool" data-card-widget="remove"><i
                            class="fas fa-times"></i></button>
                      </div>
                    </div>
                    <div class="card-body">
                      <ul>
                        <li>
                          <span>打包单号：{{showlittlewindow.upnu}}</span>
                        </li>
                        <li>
                          <span>选单单号：{{littlewindow.cgnu}}</span>
                        </li>
                        <li>
                          <span>产品：{{littlewindow.goodsname}}</span>
                        </li>
                        <li>
                          <span>数量：{{littlewindow.num}}</span>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
                <table id="example5" class="table table-bordered table-striped dataTable dtr-inline" role="grid"
                  aria-describedby="example5_info">
                  <thead>
                    <tr role="row">
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="序号: activate to sort column ascending">序号
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="单号: activate to sort column ascending" style="">单号</th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="客户: activate to sort column ascending" style="">客户
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="仓库: activate to sort column ascending" style="">仓库
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="成色: activate to sort column ascending" style="">成色
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="重量(g): activate to sort column ascending" style="">重量(g)
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="数量: activate to sort column ascending" style="">数量
                      </th>
                      <th class="sorting" tabindex="0" aria-controls="example5" rowspan="1" colspan="1"
                        aria-label="操作: activate to sort column ascending" style="">操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr role="row" class="odd" style="display: none;">
                      <td class="" tabindex="0">Gecko</td>
                      <td style="">Epiphany</td>
                      <td style="">Gnome</td>
                      <td style="">Epiphany</td>
                      <td style="">Gnome</td>
                      <td style="">Epiphany</td>
                      <td style="">Gnome</td>
                      <td class="sorting_1" style="">1.8</td>
                    </tr>
                    <tr v-for="(unpack,index) in unpacks">
                      <td>{{index+1}}</td>
                      <td>
                        <a href="javascript:void(0)" @click="showpickgoods(index)"
                          onclick="document.getElementById('light1').style.display='block';">{{unpack.upnu}}</a>
                      </td>
                      <td>{{unpack.client}}</td>
                      <td>{{unpack.storehouse}}</td>
                      <td>{{unpack.quality}}</td>
                      <td>{{unpack.weight}}</td>
                      <td>{{unpack.num}}</td>
                      <td><i class="fas fa-search"></i></td>
                    </tr>
                  </tbody>
                  <tfoot></tfoot>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
  <!-- ./wrapper -->

  <!-- REQUIRED SCRIPTS -->

  <!-- jQuery -->
  <script src="plugins/jquery/jquery.min.js"></script>
  <!-- Bootstrap -->
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  <!-- AdminLTE -->
  <script src="dist/js/adminlte.js"></script>

  <!-- OPTIONAL SCRIPTS -->
  <script src="plugins/chart.js/Chart.min.js"></script>
  <!-- AdminLTE for demo purposes -->
  <script src="dist/js/demo.js"></script>
  <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
  <script src="dist/js/pages/dashboard3.js"></script>
  <!--  -->

  <script src="plugins/datatables/jquery.dataTables.min.js"></script>
  <script src="plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
  <script src="plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
  <script src="plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
  <script src="dist/js/adminlte.min.js"></script>

  <!-- 根据不同状态的菜单 -->
  <script>

    function goinupdate() {
      document.getElementById("update_card").style.display = "";
    };
    function drop_update() {
      document.getElementById("update_card").style.display = "none";
    };
    function addplus() {
      document.getElementById("plus").style.display = "";

    };
    function drop() {

      document.getElementById("plus").style.display = "none";
    };
    function statusmenus() {

      if ($("#qwe").text() == 0) {
        document.getElementById("13").style.display = "none";
        document.getElementById("14").style.display = "none";
      } else if ($("#qwe").text() == 1) {
        document.getElementById("11").style.display = "none";
        document.getElementById("12").style.display = "none";
      }
    }
  </script>
  <!-- 根据不同状态的菜单 -->
  <script>
    new Vue({
      el: "#pick",
      data: {
        pickGoodss: []
      },
      mounted() {
        axios
          .get('pickgoods/all')
          .then(res => {
            console.info(res.data);
            this.pickGoodss = res.data.data;

          })
      },
      methods: {
        deletepickGoods: function (index, cgid) {
          axios({
            url: 'pickgoods/delete',
            method: 'get',
            params: {
              'cgid': cgid,

            },
          }).then(res => {

            this.pickGoodss.splice(index, 1);
          });

        }
      }
    });
    new Vue({
      el: "#additems",
      data: {
        unpack_category: '',
        formnu: '',
        unpack_storehouse: '',
        unpack_time: '',
        chooseformnu: '',
        customer: '',
        unpack_weight: '',
        unpack_quality: '',
        unpack_num: '',
        unpack_status: '',
        pickgoods1: [],
        cups: []
      },
      mounted() {
        axios
          .get('pickgoods/all')
          .then(res => {
            console.info(res.data);
            this.pickgoods1 = res.data.data;

            for (var i = 0; i < this.pickgoods1.length; i++) {

              if (this.pickgoods1[i].status == 0) {

                this.cups.push(this.pickgoods1[i]);
              }
            }

            console.log(this.cups);
          })
      },
      methods: {
        addupack: function () {
          var cg_id = $('#select_id option:selected').val();

          axios({
            url: 'unpack/add',
            method: 'get',
            params: {
              'upnu': this.formnu,
              'client': this.customer,
              'category': this.unpack_category,
              'quality': this.unpack_quality,
              'weight': this.unpack_weight,
              'num': this.unpack_num,
              'storehouse': this.unpack_storehouse,
              'time': this.unpack_time,
              'status': this.unpack_status,
              'cgid': cg_id,
              'paid': cg_id
            },

          }).then(res => {
            var tr = $("<tr></tr>");
            var category1 = $("<td></td>").text(this.unpack_category);
            var form1 = $("<td></td>").text(this.formnu);
            var storehouse1 = $("<td></td>").text(this.unpack_storehouse);
            var unpack_weight1 = $("<td></td>").text(this.unpack_weight);
            var client1 = $("<td></td>").text(this.customer);

            var time1 = this.unpack_time;
            time1 = time1.split("T");
            time1 = time1[0] + time1[1];
            var time2 = $("<td></td>").text(time1);

            var quality1 = $("<td></td>").text(this.unpack_quality);
            var amount1 = $("<td></td>").text(this.unpack_num);

            var active = $("<td></td>").text("<i class='fas fa-search'></i>")
            tr.append($("#example5").find("tr").length);
            tr.append(form1);
            tr.append(client1);
            tr.append(storehouse1);
            tr.append(quality1);
            tr.append(unpack_weight1);
            tr.append(amount1);
            tr.append(active);

            $("#example5").append(tr);
          })

        }
      }

    });
    new Vue({
      el: "#hitpackdetail",
      data: {
        unpacks: [],
        showlittlewindow: [],
        littlewindow: []
      },
      mounted() {
        axios
          .get('unpack/allunpack')
          .then(res => {
            console.info(res.data);
            this.unpacks = res.data.data;

          })

      },
      methods: {
        showpickgoods: function (index) {

          this.showlittlewindow = this.unpacks[index];
          this.littlewindow = this.showlittlewindow.pickGoods;
        },

      }

    });
    new Vue({
      el: "#app",
      data: {
        unpacks: [],
        updataunpack: [],
        up_amount: '',
        up_weight: '',
        up_storehouse: '',
        up_status: '',
        up_quality: '',
        up_time: ''
      },
      mounted() {
        axios
          .get('unpack/all')
          .then(res => {
            console.info(res.data);
            this.unpacks = res.data.data;

          })

      },
      methods: {
        showdetail: function (index) {
          this.updataunpack = this.unpacks[index];
        },
        doing_update: function (upnu) {
          axios({
            url: 'unpack/update',
            method: 'get',
            params: {
              'upnu': upnu,
              'num': this.up_amount,
              'weight': this.up_weight,
              'storehouse': this.up_storehouse,
              'status': this.up_status,
              'quality': this.up_quality,
              'time': this.up_time
            },
          }).then(res => {

          })
        }
      }

    });
  </script>
  <script>
    $(function () {
      $("#example1").DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $("#example3").DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $("#example4").DataTable({
        "responsive": true,
        "autoWidth": false,

      });
      $("#example5").DataTable({
        "responsive": true,
        "autoWidth": false,

      });
      $('#example2').DataTable({
        "paging": true,
        "lengthChange": false,
        "searching": false,
        "ordering": true,
        "info": true,
        "autoWidth": false,
        "responsive": true,
      });
    });
  </script>

</body>

</html>